<template>
	<view style="padding:30rpx;">
		<navigator url="/pages/APIpages/Logpage/Logpage" ><button>打印日志</button></navigator>
		<navigator url = "/pages/APIpages/TimePage/TimePage" open-type="switchTab"><button>计时器</button></navigator>
		<!-- <navigator url="/pages/APIpages/StoragePage/StoragePage"><button>数据缓存</button></navigator> -->
		
		<button @click="goStoPage()">数据缓存</button>
		<navigator url="/pages/APIpages/RefreshPage/RefreshPage"><button>页面刷新</button></navigator>
		<navigator url="/pages/APIpages/sky/sky"><button>天气预报</button></navigator>
		<navigator url="/pages/APIpages/preview/preview"><button>图片预览</button></navigator>
		<navigator url="/pages/APIpages/download/download"><button>图片预览</button></navigator>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad(){
			//预加载
			uni.preloadPage({
				url:"/pages/APIpages/StoragePage/StoragePage"
			})
		},
		methods: {
		goStoPage(){
			uni.navigateTo({
				url:"/pages/APIpages/StoragePage/StoragePage",
				success(){
					console.log("navigateTo--->success");
				},
				fail(e){
					console.log("navigateTo--->fail:" + JSON.stringify(e));
				},
				complete(){
					console.log("navigateTo--->complete");
				}
			})
			
		//	uni.uni.redirectTo({
		//		url:"/pages/APIpages/StoragePage/StoragePage"
		//	})
		
		// }	
		}
	},
	}
</script>

<style>
button{
	margin: 30rpx;
}
</style>
